﻿using huqiang.Communication;
using System;
using System.Collections.Generic;
using System.Text;

namespace DataHandle
{
    public class JsonDataHandle
    {
        public static void Handle(KcpLink link, byte cmdType, int cmd, string str)
        {
            switch (cmdType)
            {
                case MessageType.Def:
                    HandleDefMsg(link, cmd, str);
                    break;
                case MessageType.Rpc:
                    break;
            }
        }
        static void HandleDefMsg(KcpLink link,int cmd,string json)
        {
            switch (cmd)
            {
                case MsgCmd.Log:
                    LogHandle.Handle(link,json);
                    break;
            }
        }
        static void HandleRpcMsg(KcpLink link, int cmd, string json)
        {

        }
    }
}
